<template>
  <div>
    <h1>你好, 这里是学生管理系统</h1>
    <button @click="logout">登出</button>
  </div>
</template>

<script>
export default {
  methods: {
    logout() {
      localStorage.setItem('isLoggedIn', 'false');
      this.$router.push('/login');
    }
  }
}
</script>
